﻿using System.Collections.Generic;

namespace YioksPlanEditor.Tools.Web
{
    public class MyWebTool
    {
        public static MyIEplorer MyIe = new MyIEplorer();

        public static MyIEplorer.WebStatus GetPage(string url, Dictionary<string, string> parameters)
        {
            return MyIe.GetPage(url, parameters);
        }

        public static MyIEplorer.WebStatus GetPage(string url)
        {
            return MyIe.GetPage(url);
        }

        public static MyIEplorer.WebStatus PostPage(string url, Dictionary<string, string> postParameter)
        {
            return MyIe.PostPage(url, postParameter);
        }

        public static MyIEplorer.WebStatus PostFilePage(string url, Dictionary<string, string> postParameter, Dictionary<string, string> postFileParameter)
        {
            return MyIe.PostFilePage(url, postParameter, postFileParameter);
        }

        public static MyIEplorer.DownloadStatus DownloadFile(string url, string saveFilePath)
        {
            return MyIe.DownloadFile(url, saveFilePath);
        }

        public static void DownloadFile(string url, string saveFilePath, out MyIEplorer.DownloadStatus downloadStatus)
        {
            MyIe.DownloadFile(url, saveFilePath, out downloadStatus);
        }
    }
}
